package com.cvte.shop.service;

import com.cvte.csb.core.interfaces.vo.RestResponse;
import com.cvte.shop.entity.UniversalResultFields;
import com.cvte.csb.jdbc.mybatis.service.IBaseService;
import com.cvte.shop.entity.dto.FieldDTO;

import java.util.List;

/**
 * 服务类
 *
 * @author inv
 * @since 2020-08-04
 */
public interface UniversalResultFieldsService extends IBaseService<UniversalResultFields> {

    /***
     * 批量插入字段
     * @param list
     * @param tableId
     * @param viewId
     */
    void batchInsertFields(List<UniversalResultFields> list,String tableId,String viewId);

    /**
     * 将vo转换成fields
     * @param fieldDTOList
     * @return
     */
    List<UniversalResultFields> tranfserToFields(List<FieldDTO> fieldDTOList);

}
